import request from '../utils/fetch'
export function getTrainSignList(data) {
  return request({
    url: '/admin/train/getTrainSignList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getTrainList(data) {
  return request({
    url: '/admin/train/getTrainList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getTrainInfo(data) {
  return request({
    url: '/admin/train/getTrainInfo',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function enableTrain(data) {
  return request({
    url: '/admin/train/enableTrain',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function editTrain(data) {
  return request({
    url: '/admin/train/editTrain',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function addTrain(data) {
  return request({
    url: '/admin/train/addTrain',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
